package com.dfbz.springboot_mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("hospitalmeta")  // mp注解 指定表名 默认是驼峰 HospitalMeta  对应表hospital_meta
public class HospitalMeta {

    @TableId(value = "hospitalId", type = IdType.AUTO)   // 默认找id   指定主键  默认为雪花算法
    private Integer hospitalId;      // 驼峰 user_id   userId

    @TableField("hospitalName")  //实体和对象的映射
    private String hospitalName;

    @TableField("hospitalAddress")
    private String hospitalAddress;

    @TableField("mysqlUrl")
    private String mysqlUrl;

    @TableField("mysqlSchema")
    private String mysqlSchema;

    @TableField("mysqlUsername")
    private String mysqlUsername;

    @TableField("mysqlPassword")
    private String mysqlPassword;

    @TableField("mysqlStatus")
    private int mysqlStatus = 0;


}
